all: server client

server: server.cpp main.pb.cc
	g++ -o $@ $^ -std=c++17 -lbrpc -lprotobuf -lgflags -lssl -lcrypto -lleveldb

client: client.cpp main.pb.cc
	g++ -o $@ $^ -std=c++17 -lbrpc -lprotobuf -lgflags -lssl -lcrypto -lleveldb

.PHONY: clean
clean:
	rm -rf server client